package com.android.love.parser;

import java.util.List;

import com.alibaba.fastjson.JSON;
import com.android.love.util.LogUtil;
import com.android.love.vo.Address;
import com.android.love.vo.Order;

public class MyOrderParser extends BaseParser<List<Order>> {
	private static final String TAG = "MyOrderParser";

	@Override
	public List<Order> parserJson(String jsonStr) {
		List<Order> orders = null;
		LogUtil.i(TAG, "data11---" + jsonStr);
		if (checkResponse(jsonStr)) {
			String data = jsonObject.getString("data");
			LogUtil.i(TAG, "data---" + data);
			if (data != null) {
				orders = JSON.parseArray(data, Order.class);
			}
		}
		// TODO Auto-generated method stub
		return orders;
	}
}
